/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

/**
 *
 * @author Bruno Lopes
 */
public class Transfer {
    
    int id;
    int seats;
    String destination;
    int transferType;
    String transferCompany;

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public String getTransferCompany() {
        return transferCompany;
    }

    public void setTransferCompany(String transferCompany) {
        this.transferCompany = transferCompany;
    }

    public int getTransferType() {
        return transferType;
    }

    public void setTransferType(int transferType) {
        this.transferType = transferType;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Transfer other = (Transfer) obj;
        if (this.id != other.id) {
            return false;
        }
        if (this.seats != other.seats) {
            return false;
        }
        if ((this.destination == null) ? (other.destination != null) : !this.destination.equals(other.destination)) {
            return false;
        }
        if (this.transferType != other.transferType) {
            return false;
        }
        if ((this.transferCompany == null) ? (other.transferCompany != null) : !this.transferCompany.equals(other.transferCompany)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 53 * hash + this.id;
        hash = 53 * hash + this.seats;
        hash = 53 * hash + (this.destination != null ? this.destination.hashCode() : 0);
        hash = 53 * hash + this.transferType;
        hash = 53 * hash + (this.transferCompany != null ? this.transferCompany.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        String toReturn = "";

        toReturn += "\n=========="
                + "\nHotel: "
                + "\n=========="
                + "\nId: " + getId()
                + "\nNº de lugares: " + getSeats()
                + "\nDestino: " + getDestination()
                + "\nTipo de Transporte: " + getTransferType() + "\n"
                + "\nTipo de Transporte: " + getTransferCompany() + "\n";

        return toReturn;
 
    }  
}

